import request from '@/utils/request'

// 查询华软资讯列表
export function listInformation(query) {
  return request({
    url: '/campus/information/list',
    method: 'get',
    params: query
  })
}

// 查询华软资讯详细
export function getInformation(imtId) {
  return request({
    url: '/campus/information/' + imtId,
    method: 'get'
  })
}

// 新增华软资讯
export function addInformation(data) {
  return request({
    url: '/campus/information',
    method: 'post',
    data: data
  })
}

// 修改华软资讯
export function updateInformation(data) {
  return request({
    url: '/campus/information',
    method: 'put',
    data: data
  })
}

// 删除华软资讯
export function delInformation(imtId) {
  return request({
    url: '/campus/information/' + imtId,
    method: 'delete'
  })
}

// 导出华软资讯
export function exportInformation(query) {
  return request({
    url: '/campus/information/export',
    method: 'get',
    params: query
  })
}